{% extends "Themes/Itdashu/templates/page.twig" %}
{% block head %}
    <title>{{ title }}{% if page > 1 %}({{ page }}){% endif %}-{{ webConfig.name }}</title>
    <meta name="description"
          content="{% if data.description is defined AND data.description %}{{ data.description }}{% else %}{{ subString(data.body,80,true) }}{% endif %}">
    <meta name="keywords" content="{% if keywords is defined %}{{ keywords }}{% else %}{{ title }}{% endif %}">
    <meta name="apple-mobile-web-app-title" content="{{ title }}">
{% endblock %}

{% block body %}
    <div class="col-lg-9 col-md-9 left-box">
        <div class="title">
            <h1>
                <i class="fa fa-newspaper-o" aria-hidden="true"></i>{{ word }}
            </h1>
            <span>有<b id="zanNum" class="highlight">{{ searchModel.hot }}</b>人搜过，大概<b id="zanNum" class="highlight">{{ searchTotal }}</b>条结果，第<b id="zanNum" class="highlight">{{ page }}</b>页</span>
        </div>
        <div class="search-form-box">
            {{ view.r(formRender('search.defaultSearch')) }}
        </div>
        {{ content() }}
        {% for item in data.items %}
            <article class="search-list-item search-list-item-{{ searchModel.project }} clearfix">
                <div class="node-content">
                    <h3><a href="{{ url(['for':'node','contentModel':item.contentModel,'id':item.id]) }}" title="{{ item.title }}">{{ search.highlight(item.title) }}</a></h3>
                    <p class="body">
                        {{ search.highlight(subString(item.body,250,true)) }}
                        ..
                    </p>
                </div>
            </article>
        {% endfor %}
        {{ partial("Themes/Itdashu/templates/paginator") }}
    </div>
{% endblock %}

{% block right_box %}
    {{ view.r(regionRender('right')) }}
{% endblock %}
